package com.ctshk.rpc.cms.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ApiModel(value = "AppHomeHotRecommendSearchReq", description = "APP首页热门推荐检索请求")
public class AppHomeHotRecommendSearchReq implements Serializable {
    private static final long serialVersionUID = -4340879699786348470L;

    @Range(min = 1, max = 5, message = "类型无效")
    @ApiModelProperty(value = "单项类型,1:旅行团 2:自由行套票 3:酒店 4:门票 5:当地玩乐", required = true)
    private Integer type;

    @NotNull(message = "渠道id不能为空")
    @ApiModelProperty(value = "渠道id", required = true)
    private Long channelId;

    @ApiModelProperty(value = "分组id")
    private String groupId;

    @ApiModelProperty(value = "城市id")
    private Long cityId;

    @ApiModelProperty(value = "页码")
    private Integer page = 0;

    @ApiModelProperty(value = "每页数据量")
    private Integer size = 8;
}